package com.airlines.crewassignment.domain.solver.move;

import org.optaplanner.core.impl.score.director.ScoreDirector;

import com.airlines.crewassignment.domain.Crew;
import com.airlines.crewassignment.domain.CrewLinkLineRoster;
import com.airlines.crewassignment.domain.CrewPositionAssignment;

/**
 * @author xxxx
 * @date 2018年4月16日 
 * @description
 * @
 */
public class CrewLinkLineRosteringMoveHelpe {
	private CrewLinkLineRosteringMoveHelpe(){
		
	}
	
	public static void moveCrew(ScoreDirector<CrewLinkLineRoster> scoreDirector, CrewPositionAssignment crewPositionAssignment, Crew toCrew) {
        scoreDirector.beforeVariableChanged(crewPositionAssignment, "crew");
        crewPositionAssignment.setCrew(toCrew);
        scoreDirector.afterVariableChanged(crewPositionAssignment, "crew");
    }
}
